<div class="header">
    <div class="logo">
        <a href="<?php echo $this->Html->url(array('controller' => 'Dashboard', 'action' => 'index')); ?>">
            <?php echo $this->Html->image('logo.png', array('alt' => 'Name of App')); ?>
        </a>
    </div>
    <div class="headerinner">
        <ul class="headmenu">
           <!-- <li class="odd">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <span class="count">4</span>
                    <span class="head-icon head-message"></span>
                    <span class="headmenu-label">Messages</span>
                </a>
                <ul class="dropdown-menu">
                    <li class="nav-header">Messages</li>
                    <li><a href="#"><span class="icon-envelope"></span> New message from <strong>Jack</strong> <small class="muted"> - 19 hours ago</small></a></li>
                    <li><a href="#"><span class="icon-envelope"></span> New message from <strong>Daniel</strong> <small class="muted"> - 2 days ago</small></a></li>
                    <li><a href="#"><span class="icon-envelope"></span> New message from <strong>Jane</strong> <small class="muted"> - 3 days ago</small></a></li>
                    <li><a href="#"><span class="icon-envelope"></span> New message from <strong>Tanya</strong> <small class="muted"> - 1 week ago</small></a></li>
                    <li><a href="#"><span class="icon-envelope"></span> New message from <strong>Lee</strong> <small class="muted"> - 1 week ago</small></a></li>
                    <li class="viewmore"><a href="#">View More Messages</a></li>
                </ul>
            </li>-->
            <?php
                $user_type = $authUser['user_type'];
                if($user_type == 'service_adviser'){
                    echo $this->element('header_service_adviser');
                }
                ?>
            <li class="right">
                <div class="userloggedinfo">
                    <?php echo $this->Html->image('profile.png', array('alt' => '','border'=>0)); ?>
                    <div class="userinfo">
                        <h5>
                            <?php echo $authUser['fname'].' '.$authUser['mname'].' '.$authUser['lname'] ;?>
                            <small>-  <?php echo $authUser['email'] ;?></small>
                        </h5>
                        <ul>
                            <li><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'profile')); ?>">Edit Profile</a></li>
                            <!--<li><a href="#">Account Settings</a></li>-->
                            <li><a href="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'logout')); ?>">Sign Out</a></li>
                        </ul>
                    </div>
                </div>
            </li>
        </ul><!--headmenu-->
    </div>
</div>